webpackJsonp([0],{

/***/ 302:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
var normalizeComponent = __webpack_require__(4)
/* script */
var __vue_script__ = __webpack_require__(382)
/* template */
var __vue_template__ = __webpack_require__(391)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources/assets/js/views/cms/blog/edit.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-loader/node_modules/vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-59d273ee", Component.options)
  } else {
    hotAPI.reload("data-v-59d273ee", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 303:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _waves = __webpack_require__(304);

var _waves2 = _interopRequireDefault(_waves);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var install = function install(Vue) {
  Vue.directive('waves', _waves2.default);
};

if (window.Vue) {
  window.waves = _waves2.default;
  Vue.use(install); // eslint-disable-line
}

_waves2.default.install = install;
exports.default = _waves2.default;

/***/ }),

/***/ 304:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

__webpack_require__(305);

exports.default = {
  bind: function bind(el, binding) {
    el.addEventListener('click', function (e) {
      var customOpts = Object.assign({}, binding.value);
      var opts = Object.assign({
        ele: el, // 波纹作用元素
        type: 'hit', // hit 点击位置扩散 center中心点扩展
        color: 'rgba(0, 0, 0, 0.15)' // 波纹颜色
      }, customOpts);
      var target = opts.ele;
      if (target) {
        target.style.position = 'relative';
        target.style.overflow = 'hidden';
        var rect = target.getBoundingClientRect();
        var ripple = target.querySelector('.waves-ripple');
        if (!ripple) {
          ripple = document.createElement('span');
          ripple.className = 'waves-ripple';
          ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + 'px';
          target.appendChild(ripple);
        } else {
          ripple.className = 'waves-ripple';
        }
        switch (opts.type) {
          case 'center':
            ripple.style.top = rect.height / 2 - ripple.offsetHeight / 2 + 'px';
            ripple.style.left = rect.width / 2 - ripple.offsetWidth / 2 + 'px';
            break;
          default:
            ripple.style.top = (e.pageY - rect.top - ripple.offsetHeight / 2 - document.documentElement.scrollTop || document.body.scrollTop) + 'px';
            ripple.style.left = (e.pageX - rect.left - ripple.offsetWidth / 2 - document.documentElement.scrollLeft || document.body.scrollLeft) + 'px';
        }
        ripple.style.backgroundColor = opts.color;
        ripple.className = 'waves-ripple z-active';
        return false;
      }
    }, false);
  }
};

/***/ }),

/***/ 305:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(306);
if(typeof content === 'string') content = [[module.i, content, '']];
// Prepare cssTransformation
var transform;

var options = {}
options.transform = transform
// add the styles to the DOM
var update = __webpack_require__(98)(content, options);
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
	// When the styles change, update the <style> tags
	if(!content.locals) {
		module.hot.accept("!!../../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!./waves.css", function() {
			var newContent = require("!!../../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!./waves.css");
			if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
			update(newContent);
		});
	}
	// When the module is disposed, remove the <style> tags
	module.hot.dispose(function() { update(); });
}

/***/ }),

/***/ 306:
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(6)(false);
// imports


// module
exports.push([module.i, ".waves-ripple {\n    position: absolute;\n    border-radius: 100%;\n    background-color: rgba(0, 0, 0, 0.15);\n    background-clip: padding-box;\n    pointer-events: none;\n    -webkit-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n    -webkit-transform: scale(0);\n    -ms-transform: scale(0);\n    transform: scale(0);\n    opacity: 1;\n}\n\n.waves-ripple.z-active {\n    opacity: 0;\n    -webkit-transform: scale(2);\n    -ms-transform: scale(2);\n    transform: scale(2);\n    -webkit-transition: opacity 1.2s ease-out, -webkit-transform 0.6s ease-out;\n    transition: opacity 1.2s ease-out, -webkit-transform 0.6s ease-out;\n    transition: opacity 1.2s ease-out, transform 0.6s ease-out;\n    transition: opacity 1.2s ease-out, transform 0.6s ease-out, -webkit-transform 0.6s ease-out;\n}", ""]);

// exports


/***/ }),

/***/ 307:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(308)
}
var normalizeComponent = __webpack_require__(4)
/* script */
var __vue_script__ = __webpack_require__(310)
/* template */
var __vue_template__ = __webpack_require__(311)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-26d39d02"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources/assets/js/components/imagePicker.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-loader/node_modules/vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-26d39d02", Component.options)
  } else {
    hotAPI.reload("data-v-26d39d02", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 308:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(309);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(8)("7d7cb50e", content, false, {});
// Hot Module Replacement
if(false) {
 // When the styles change, update the <style> tags
 if(!content.locals) {
   module.hot.accept("!!../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-26d39d02\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/_sass-loader@6.0.7@sass-loader/lib/loader.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./imagePicker.vue", function() {
     var newContent = require("!!../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-26d39d02\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/_sass-loader@6.0.7@sass-loader/lib/loader.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./imagePicker.vue");
     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
     update(newContent);
   });
 }
 // When the module is disposed, remove the <style> tags
 module.hot.dispose(function() { update(); });
}

/***/ }),

/***/ 309:
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(6)(false);
// imports


// module
exports.push([module.i, "\n.el-dialog__body[data-v-26d39d02] {\n  padding-top: 10px;\n  padding-left: 20px;\n  padding-right: 20px;\n}\n.image[data-v-26d39d02] {\n  width: auto;\n  height: auto;\n  max-width: 100%;\n  max-height: 100%;\n  margin: 0 auto;\n  display: block;\n}\n.card-img-top[data-v-26d39d02] {\n  height: 100px;\n  margin-top: 20px;\n}\n.time[data-v-26d39d02] {\n  font-size: 13px;\n  color: #999;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.bottom[data-v-26d39d02] {\n  margin-top: 13px;\n  line-height: 12px;\n}\n.button[data-v-26d39d02] {\n  padding: 0;\n  float: right;\n}\n.clearfix[data-v-26d39d02]:before,\n.clearfix[data-v-26d39d02]:after {\n  display: table;\n  content: \"\";\n}\n.clearfix[data-v-26d39d02]:after {\n  clear: both;\n}\n.shadow[data-v-26d39d02] {\n  -webkit-box-shadow: 0 0 2px 2px #1ab394 !important;\n          box-shadow: 0 0 2px 2px #1ab394 !important;\n}\n.checked[data-v-26d39d02] {\n  color: #1ab394;\n}\n.imginfo[data-v-26d39d02] {\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n", ""]);

// exports


/***/ }),

/***/ 310:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _auth = __webpack_require__(39);

exports.default = {
    props: {
        stateManager: {
            type: Object
        },
        multiple: ''
    },
    data: function data() {
        return {
            list: this.$listDataSource({
                url: '/api/cms/asset'
            }),
            imageRefreshList: true,
            isLoading: false,
            imgIndex: 0,
            activeName: 'image',
            isActive: '',
            //          是否清空标签栏
            isClear: '',
            interviewImg: {
                Listids: [],
                listthumbs: []
            },
            uploadAction: window.uploadHeaders,
            currentPage: 1,
            parameter: {
                type: 'image',
                tags: []
            },
            query: {
                page: 1,
                type: 'image',
                tags: []
            }
        };
    },
    methods: {
        checkedImg: function checkedImg(item, multiple) {
            if (multiple == true) {} else if (multiple == false) {
                this.interviewImg.Listids.splice(0);
                this.interviewImg.listthumbs.splice(0);
            }
            console.log('当前id' + this.interviewImg.Listids);
            var ids = this.interviewImg.Listids.indexOf(item.id);
            console.log('fff', ids);
            if (ids >= 0) {
                //如果包含了该ID，则删除（单选按钮由选中变为非选中状态）
                this.interviewImg.Listids.splice(ids, 1);
                this.interviewImg.listthumbs.pop(item.path);
            } else {
                //选中该按钮
                this.interviewImg.Listids.push(item.id);
                this.interviewImg.listthumbs.push(item.path);
            }
            ids = this.interviewImg.Listids.indexOf(item.id);
            console.log('ggg', ids);
            console.log('子的id' + this.interviewImg.Listids);
            console.log('子的路径' + this.interviewImg.listthumbs);
        },
        postTag: function postTag(e) {
            var self = this;
            console.log(e);
            self.parameter.tags = e;
            this.query.tags = self.parameter.tags;
            self.imageRefreshList = true;
        },

        uploadSuccessCallback: function uploadSuccessCallback(response, file) {
            //上传成功回调
            console.log(file);
            this.$message({
                message: '成功上传',
                type: 'success'
            });
            this.imageRefreshList = true;
        },
        uploadFailedCallback: function uploadFailedCallback(error, file) {
            //上传失败回调
            console.log(error);
            console.log(file);
            this.$Notice.error({
                title: '上传失败',
                desc: error
            });
        },
        handleBeforeUpload: function handleBeforeUpload(file) {
            var isJPG = void 0;
            switch (file.type) {
                case 'image/jpeg':
                case 'image/jpg':
                case 'image/png':
                    isJPG = true;
                    break;
                default:
                    isJPG = false;
            }
            var isLt2M = file.size / 1024 / 1024 < 2;

            if (!isJPG) {
                this.$message.error('上传图片只能是 JPG/PNG 格式!');
            }
            if (!isLt2M) {
                this.$message.error('上传图片大小不能超过 2MB!');
            }
            return isJPG && isLt2M;
        },

        // 翻页
        handleCurrentChange: function handleCurrentChange(val) {
            this.currentPage = val;
            this.query.page = val;
            this.imageRefreshList = true;
        },

        closeDialog: function closeDialog() {
            this.stateManager.DialogVisible = false;
            this.interviewImg.Listids = [];
            this.interviewImg.listthumbs = [];
            this.isClear = true;
        },
        saveModel: function saveModel() {
            this.$emit('submitPicture', this.interviewImg);
            this.closeDialog();
        }
    },
    computed: {
        modalTitle: function modalTitle() {
            return '选择图片';
        },
        tableList: function tableList() {
            var self = this;
            if (this.imageRefreshList) {
                this.list.fetch(self.query, function () {
                    self.imageRefreshList = false;
                });
            }
            return this.list;
        }
    },
    watch: {
        'stateManager.editModelId': function stateManagerEditModelId(newValue) {
            var self = this;
            this.model.fetch(newValue, {}, function () {
                self.stateManager.buttonLoading = false;
                self.stateManager.editDialogVisible = true;
            }, function () {
                self.stateManager.buttonLoading = false;
            });
        }
    }
}; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/***/ }),

/***/ 311:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { attrs: { id: "create-edit-container" } },
    [
      _c(
        "el-drawer",
        {
          ref: "drawer",
          attrs: {
            direction: "rtl",
            visible: _vm.stateManager.DialogVisible,
            title: _vm.modalTitle,
            "custom-class": "demo-drawer",
            size: "40%"
          },
          on: {
            "update:visible": function($event) {
              return _vm.$set(_vm.stateManager, "DialogVisible", $event)
            }
          }
        },
        [
          _c("div", { staticClass: "dialog-drawer-content" }, [
            _c("div", { staticClass: "content", staticStyle: { flex: "1" } }, [
              _c(
                "div",
                { staticClass: "col" },
                [
                  _c(
                    "el-upload",
                    {
                      ref: "upload",
                      attrs: {
                        action: "/api/cms/asset",
                        multiple: "",
                        data: _vm.parameter,
                        headers: _vm.uploadAction,
                        "show-file-list": false,
                        "on-error": _vm.uploadFailedCallback,
                        "before-upload": _vm.handleBeforeUpload,
                        "on-success": _vm.uploadSuccessCallback
                      }
                    },
                    [
                      _c(
                        "el-button",
                        { attrs: { size: "small", type: "primary" } },
                        [
                          _vm._v("点击上传\n                            "),
                          _c("i", {
                            staticClass: "el-icon-upload el-icon--right"
                          })
                        ]
                      )
                    ],
                    1
                  )
                ],
                1
              ),
              _vm._v(" "),
              _c("hr"),
              _vm._v(" "),
              _c(
                "div",
                {
                  staticClass: "container",
                  staticStyle: { "margin-top": "1.5rem" }
                },
                [
                  _c(
                    "div",
                    { staticClass: "row picker-container" },
                    [
                      _vm._l(_vm.tableList.items, function(item, index) {
                        return [
                          _c(
                            "div",
                            {
                              staticClass:
                                "col-xl-3 col-lg-3 col-md-6 col-sm-6",
                              on: {
                                click: function($event) {
                                  return _vm.checkedImg(item, _vm.multiple)
                                }
                              }
                            },
                            [
                              _c(
                                "div",
                                {
                                  staticClass: "single-cat-item",
                                  class: {
                                    shadow:
                                      _vm.interviewImg.Listids.indexOf(
                                        item.id
                                      ) >= 0
                                  }
                                },
                                [
                                  _c("img", {
                                    attrs: { src: item.path, alt: "" }
                                  }),
                                  _vm._v(" "),
                                  _c(
                                    "div",
                                    { staticClass: "item-meta" },
                                    [
                                      _c("span", [
                                        _c("h4", [
                                          _vm._v(_vm._s(item.name) + " ")
                                        ])
                                      ]),
                                      _vm._v(" "),
                                      _c("p", [
                                        _vm._v(
                                          "上传于" + _vm._s(item.created_at)
                                        )
                                      ]),
                                      _vm._v(" "),
                                      _vm._l(item.tags, function(item) {
                                        return _c(
                                          "span",
                                          { staticClass: "watch-list-btn" },
                                          [_vm._v(_vm._s(item))]
                                        )
                                      })
                                    ],
                                    2
                                  )
                                ]
                              )
                            ]
                          )
                        ]
                      })
                    ],
                    2
                  )
                ]
              )
            ]),
            _vm._v(" "),
            _c("div", { staticClass: "dialog-drawer-footer" }, [
              _c("div", { staticClass: "dialog-drawer-footer row" }, [
                _c(
                  "div",
                  { staticClass: "col" },
                  [
                    _c("el-pagination", {
                      attrs: {
                        background: "",
                        layout: "prev, pager, next,total",
                        "page-size": 18,
                        total: _vm.list.total,
                        "current-page": _vm.currentPage
                      },
                      on: { "current-change": _vm.handleCurrentChange }
                    })
                  ],
                  1
                ),
                _vm._v(" "),
                _c(
                  "div",
                  { staticClass: "col pull-right" },
                  [
                    _c(
                      "el-button",
                      {
                        attrs: { type: "ghost" },
                        on: { click: _vm.closeDialog }
                      },
                      [_vm._v("取消")]
                    ),
                    _vm._v(" "),
                    _c(
                      "el-button",
                      {
                        attrs: { type: "primary", loading: _vm.isLoading },
                        on: { click: _vm.saveModel }
                      },
                      [
                        _vm._v(
                          _vm._s(_vm.isLoading ? "提交中" : "确定") +
                            "\n                        "
                        )
                      ]
                    )
                  ],
                  1
                )
              ])
            ])
          ])
        ]
      )
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-loader/node_modules/vue-hot-reload-api")      .rerender("data-v-26d39d02", module.exports)
  }
}

/***/ }),

/***/ 312:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(313)
}
var normalizeComponent = __webpack_require__(4)
/* script */
var __vue_script__ = __webpack_require__(315)
/* template */
var __vue_template__ = __webpack_require__(316)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-86d4bfbc"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources/assets/js/components/videoPicker.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-loader/node_modules/vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-86d4bfbc", Component.options)
  } else {
    hotAPI.reload("data-v-86d4bfbc", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 313:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(314);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(8)("aa4010a8", content, false, {});
// Hot Module Replacement
if(false) {
 // When the styles change, update the <style> tags
 if(!content.locals) {
   module.hot.accept("!!../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-86d4bfbc\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/_sass-loader@6.0.7@sass-loader/lib/loader.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./videoPicker.vue", function() {
     var newContent = require("!!../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-86d4bfbc\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/_sass-loader@6.0.7@sass-loader/lib/loader.js!../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./videoPicker.vue");
     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
     update(newContent);
   });
 }
 // When the module is disposed, remove the <style> tags
 module.hot.dispose(function() { update(); });
}

/***/ }),

/***/ 314:
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(6)(false);
// imports


// module
exports.push([module.i, "\n.el-dialog__body[data-v-86d4bfbc] {\n  padding-top: 10px;\n  padding-left: 20px;\n  padding-right: 20px;\n}\n.image[data-v-86d4bfbc] {\n  width: auto;\n  height: auto;\n  max-width: 100%;\n  max-height: 100%;\n  margin: 0 auto;\n  display: block;\n}\n.card-img-top[data-v-86d4bfbc] {\n  height: 100px;\n  margin-top: 20px;\n}\n.time[data-v-86d4bfbc] {\n  font-size: 13px;\n  color: #999;\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n.bottom[data-v-86d4bfbc] {\n  margin-top: 13px;\n  line-height: 12px;\n}\n.button[data-v-86d4bfbc] {\n  padding: 0;\n  float: right;\n}\n.clearfix[data-v-86d4bfbc]:before,\n.clearfix[data-v-86d4bfbc]:after {\n  display: table;\n  content: \"\";\n}\n.clearfix[data-v-86d4bfbc]:after {\n  clear: both;\n}\n.shadow[data-v-86d4bfbc] {\n  -webkit-box-shadow: 0 0 2px 2px #1ab394 !important;\n          box-shadow: 0 0 2px 2px #1ab394 !important;\n}\n.checked[data-v-86d4bfbc] {\n  color: #1ab394;\n}\n.imginfo[data-v-86d4bfbc] {\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n", ""]);

// exports


/***/ }),

/***/ 315:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _auth = __webpack_require__(39);

var _waves = __webpack_require__(303);

var _waves2 = _interopRequireDefault(_waves);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// Waves directive
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

exports.default = {
    props: {
        stateManager: {
            type: Object
        },
        multiple: ''
    },
    directives: { waves: _waves2.default },
    data: function data() {
        return {
            list: this.$listDataSource({
                url: '/api/cms/video'
            }),
            imageRefreshList: true,
            isLoading: false,
            imgIndex: 0,
            activeName: 'image',
            isActive: '',
            //          是否清空标签栏
            isClear: '',
            interviewImg: {
                Listids: [],
                listthumbs: []
            },
            uploadAction: window.uploadHeaders,
            currentPage: 1,
            parameter: {
                type: 'image',
                tags: []
            },
            query: {
                page: 1,
                type: 'image',
                tags: []
            }
        };
    },
    methods: {
        checkedImg: function checkedImg(item, multiple) {
            if (multiple == true) {} else if (multiple == false) {
                this.interviewImg.Listids.splice(0);
                this.interviewImg.listthumbs.splice(0);
            }
            var ids = this.interviewImg.Listids.indexOf(item.id);
            if (ids >= 0) {
                //如果包含了该ID，则删除（单选按钮由选中变为非选中状态）
                this.interviewImg.Listids.splice(ids, 1);
                this.interviewImg.listthumbs.pop(item.path);
            } else {
                //选中该按钮
                this.interviewImg.Listids.push(item.id);
                this.interviewImg.listthumbs.push(item.path);
            }
            this.interviewImg.Listids.indexOf(item.id);
            this.$emit('submitPicture', this.interviewImg);
            this.closeDialog();
        },
        handleClick: function handleClick(type) {
            var self = this;
            self.query = {};
            self.parameter.type = type;
            self.query.type = self.parameter.type;
            self.imageRefreshList = true;
        },
        postTag: function postTag(e) {
            var self = this;
            console.log(e);
            self.parameter.tags = e;
            this.query.tags = self.parameter.tags;
            self.imageRefreshList = true;
        },

        uploadSuccessCallback: function uploadSuccessCallback(response, file) {
            //上传成功回调
            console.log(file);
            this.$message({
                message: '成功上传',
                type: 'success'
            });
            this.imageRefreshList = true;
        },
        uploadFailedCallback: function uploadFailedCallback(error, file) {
            //上传失败回调
            console.log(error);
            console.log(file);
            this.$Notice.error({
                title: '上传失败',
                desc: error
            });
        },
        handleBeforeUpload: function handleBeforeUpload(file) {
            var isJPG = void 0;
            switch (file.type) {
                case 'video/mp4':
                    isJPG = true;
                    break;
                default:
                    isJPG = false;
            }
            var isLt2M = file.size / 1024 / 1024 < 10;

            if (!isJPG) {
                this.$message.error('上传视频只能是 JPG/PNG 格式!');
            }
            if (!isLt2M) {
                this.$message.error('上传视频大小不能超过 10MB!');
            }
            return isJPG && isLt2M;
        },

        // 翻页
        handleCurrentChange: function handleCurrentChange(val) {
            this.currentPage = val;
            this.query.page = val;
            this.imageRefreshList = true;
        },

        closeDialog: function closeDialog() {
            this.stateManager.DialogVisible = false;
            this.interviewImg.Listids = [];
            this.interviewImg.listthumbs = [];
            this.isClear = true;
        }
    },
    computed: {
        modalTitle: function modalTitle() {
            return '选择视频';
        },
        tableList: function tableList() {
            var self = this;
            if (this.imageRefreshList) {
                this.list.fetch(self.query, function () {
                    self.imageRefreshList = false;
                });
            }
            return this.list;
        }
    },
    watch: {
        'stateManager.editModelId': function stateManagerEditModelId(newValue) {
            var self = this;
            this.model.fetch(newValue, {}, function () {
                self.stateManager.buttonLoading = false;
                self.stateManager.editDialogVisible = true;
            }, function () {
                self.stateManager.buttonLoading = false;
            });
        }
    }
};

/***/ }),

/***/ 316:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { attrs: { id: "create-edit-container" } },
    [
      _c(
        "el-drawer",
        {
          ref: "drawer",
          attrs: {
            direction: "rtl",
            visible: _vm.stateManager.DialogVisible,
            title: _vm.modalTitle,
            "custom-class": "demo-drawer",
            size: "40%"
          },
          on: {
            "update:visible": function($event) {
              return _vm.$set(_vm.stateManager, "DialogVisible", $event)
            }
          }
        },
        [
          _c("div", { staticClass: "dialog-drawer-content" }, [
            _c(
              "div",
              { staticClass: "content", staticStyle: { flex: "1" } },
              [
                _c(
                  "div",
                  { staticClass: "filter-container" },
                  [
                    _c(
                      "el-upload",
                      {
                        ref: "upload",
                        attrs: {
                          action: "/api/cms/video",
                          multiple: "",
                          data: _vm.parameter,
                          headers: _vm.uploadAction,
                          "show-file-list": false,
                          "on-error": _vm.uploadFailedCallback,
                          "before-upload": _vm.handleBeforeUpload,
                          "on-success": _vm.uploadSuccessCallback
                        }
                      },
                      [
                        _c(
                          "el-button",
                          {
                            staticClass: "filter-item",
                            attrs: { size: "small", type: "primary" }
                          },
                          [
                            _vm._v("点击上传\n                            "),
                            _c("i", {
                              staticClass: "el-icon-upload el-icon--right"
                            })
                          ]
                        )
                      ],
                      1
                    )
                  ],
                  1
                ),
                _vm._v(" "),
                _c(
                  "el-table",
                  {
                    directives: [
                      {
                        name: "loading",
                        rawName: "v-loading",
                        value: _vm.stateManager.listLoading,
                        expression: "stateManager.listLoading"
                      }
                    ],
                    attrs: {
                      data: _vm.tableList.items,
                      border: "",
                      fit: "",
                      "highlight-current-row": "",
                      height: "700"
                    }
                  },
                  [
                    _c("el-table-column", {
                      attrs: {
                        prop: "name",
                        label: "文件名称",
                        align: "center"
                      }
                    }),
                    _vm._v(" "),
                    _c("el-table-column", {
                      attrs: { align: "center", prop: "tags", label: "标签" },
                      scopedSlots: _vm._u([
                        {
                          key: "default",
                          fn: function(scope) {
                            return [
                              _vm._l(scope.row.tags, function(item) {
                                return [
                                  _c(
                                    "el-tag",
                                    {
                                      staticStyle: { "margin-right": "5px" },
                                      attrs: { size: "mini" }
                                    },
                                    [_vm._v(_vm._s(item))]
                                  )
                                ]
                              })
                            ]
                          }
                        }
                      ])
                    }),
                    _vm._v(" "),
                    _c("el-table-column", {
                      attrs: { label: "操作", width: "230", align: "center" },
                      scopedSlots: _vm._u([
                        {
                          key: "default",
                          fn: function(scope) {
                            return [
                              _c("el-button", {
                                directives: [
                                  { name: "waves", rawName: "v-waves" }
                                ],
                                attrs: { size: "mini", icon: "fa fa-check" },
                                on: {
                                  click: function($event) {
                                    return _vm.checkedImg(
                                      scope.row,
                                      _vm.multiple
                                    )
                                  }
                                }
                              })
                            ]
                          }
                        }
                      ])
                    })
                  ],
                  1
                )
              ],
              1
            ),
            _vm._v(" "),
            _c("div", { staticClass: "dialog-drawer-footer" }, [
              _c("div", { staticClass: "dialog-drawer-footer row" }, [
                _c(
                  "div",
                  { staticClass: "col" },
                  [
                    _c("el-pagination", {
                      attrs: {
                        background: "",
                        layout: "prev, pager, next,total",
                        "page-size": 18,
                        total: _vm.list.total,
                        "current-page": _vm.currentPage
                      },
                      on: { "current-change": _vm.handleCurrentChange }
                    })
                  ],
                  1
                )
              ])
            ])
          ])
        ]
      )
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-loader/node_modules/vue-hot-reload-api")      .rerender("data-v-86d4bfbc", module.exports)
  }
}

/***/ }),

/***/ 382:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

var _vuex = __webpack_require__(38);

var _imagePicker = __webpack_require__(307);

var _imagePicker2 = _interopRequireDefault(_imagePicker);

var _Tinymce = __webpack_require__(383);

var _Tinymce2 = _interopRequireDefault(_Tinymce);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = {
  props: {
    id: 0
  },
  components: {
    'tiny-editor': _Tinymce2.default,
    'image-picker': _imagePicker2.default
  },
  data: function data() {
    return {
      stateManager: {
        refreshList: true,
        editDialogVisible: false,
        editModelId: null,
        listLoading: true,
        buttonLoading: false
      },
      model: this.$modelDataSource({
        url: '/api/cms/blog',
        dataKey: 'model',
        attributes: {
          id: 0,
          title: '',
          sub_title: '',
          content: '',
          thumbnail_path: '',
          cover_image: '',
          tags: [],
          category: []
        }
      }),
      manager: { DialogVisible: false },
      isLoading: false,
      ruleValidate: {
        title: [{ required: true, message: '请填写文章标题', trigger: 'blur' }],
        content: [{ required: true, message: '请填写文章内容', trigger: 'blur' }],
        category: [{ required: true, message: '请选择文章栏目', trigger: ['blur', 'array'] }]
      }
    };
  },
  created: function created() {
    this.$store.dispatch('fetchCategoryList');
    this.$store.dispatch('fetchTags');
    this.model.fetch(this.id, { include: 'update' });
  },

  methods: {
    getPicture: function getPicture(e) {
      this.model.cover_image = e.Listids[0];
      this.model.thumbnail_path = e.listthumbs[0];
    },
    imgPick: function imgPick() {
      this.manager.DialogVisible = true;
    },

    saveModel: function saveModel() {
      var self = this;
      self.$refs['model'].validate(function (valid) {
        if (valid) {
          self.isLoading = false;
          self.stateManager.buttonLoading = true;
          self.model.save(function () {
            self.$message.success('保存成功');
            self.stateManager.buttonLoading = false;
            self.$router.push({ name: 'cms-blog' });
          }, function (errors) {
            self.stateManager.buttonLoading = false;
          });
        } else {
          console.log('表单验证失败');
        }
      });
    }
  },
  computed: _extends({}, (0, _vuex.mapGetters)(['tags', 'categoryList']), {
    modalTitle: function modalTitle() {
      switch (this.id) {
        case 0:
          return '添加文章';
          break;
        default:
          return '编辑文章';
      }
    }
  })
};

/***/ }),

/***/ 383:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(384)
}
var normalizeComponent = __webpack_require__(4)
/* script */
var __vue_script__ = __webpack_require__(386)
/* template */
var __vue_template__ = __webpack_require__(390)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-195137ab"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources/assets/js/components/Tinymce/index.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-loader/node_modules/vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-195137ab", Component.options)
  } else {
    hotAPI.reload("data-v-195137ab", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 384:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(385);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(8)("667bfc86", content, false, {});
// Hot Module Replacement
if(false) {
 // When the styles change, update the <style> tags
 if(!content.locals) {
   module.hot.accept("!!../../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!../../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-195137ab\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./index.vue", function() {
     var newContent = require("!!../../../../../node_modules/_css-loader@0.28.11@css-loader/index.js!../../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-195137ab\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=styles&index=0!./index.vue");
     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
     update(newContent);
   });
 }
 // When the module is disposed, remove the <style> tags
 module.hot.dispose(function() { update(); });
}

/***/ }),

/***/ 385:
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(6)(false);
// imports


// module
exports.push([module.i, "\n.tinymce-container[data-v-195137ab] {\n    position: relative;\n    line-height: normal;\n}\n.tinymce-container[data-v-195137ab] .mce-fullscreen {\n    z-index: 10000;\n}\n.tinymce-textarea[data-v-195137ab] {\n    visibility: hidden;\n    z-index: -1;\n}\n.editor-custom-btn-container[data-v-195137ab] {\n    position: absolute;\n    right: 4px;\n    top: 4px;\n    /*z-index: 2005;*/\n}\n.fullscreen .editor-custom-btn-container[data-v-195137ab] {\n    z-index: 10000;\n    position: fixed;\n}\n.editor-upload-btn[data-v-195137ab] {\n    display: inline-block;\n}\n", ""]);

// exports


/***/ }),

/***/ 386:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
    value: true
});

var _plugins = __webpack_require__(387);

var _plugins2 = _interopRequireDefault(_plugins);

var _toolbar = __webpack_require__(388);

var _toolbar2 = _interopRequireDefault(_toolbar);

var _dynamicLoadScript = __webpack_require__(389);

var _dynamicLoadScript2 = _interopRequireDefault(_dynamicLoadScript);

var _auth = __webpack_require__(39);

var _imagePicker = __webpack_require__(307);

var _imagePicker2 = _interopRequireDefault(_imagePicker);

var _videoPicker = __webpack_require__(312);

var _videoPicker2 = _interopRequireDefault(_videoPicker);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// why use this cdn, detail see https://github.com/PanJiaChen/tinymce-all-in-one
//
//
//
//
//
//
//
//
//

/**
 * docs:
 * https://panjiachen.github.io/vue-element-admin-site/feature/component/rich-editor.html#tinymce
 */
var tinymceCDN = 'http://travel.huade.yarsenal.com/storage/tinymce/tinymce.min.js';

exports.default = {
    name: 'Tinymce',
    props: {
        id: {
            type: String,
            default: function _default() {
                return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '');
            }
        },
        value: {
            type: String,
            default: ''
        },
        toolbar: {
            type: Array,
            required: false,
            default: function _default() {
                return [];
            }
        },
        menubar: {
            type: String,
            default: 'file edit insert view format table'
        },
        height: {
            type: [Number, String],
            required: false,
            default: 360
        },
        width: {
            type: [Number, String],
            required: false,
            default: 'auto'
        }
    },
    components: {
        videoPicker: _videoPicker2.default,
        imagePicker: _imagePicker2.default
    },
    data: function data() {
        return {
            headers: { 'Authorization': 'Bearer ' + (0, _auth.getToken)() },
            hasChange: false,
            hasInit: false,
            percent: 0,
            loading: false,
            tinymceId: this.id,
            fullscreen: false,
            imageManager: {
                DialogVisible: false
            },
            videoManager: {
                DialogVisible: false
            },
            languageTypeList: {
                'en': 'en',
                'zh': 'zh_CN',
                'es': 'es_MX',
                'ja': 'ja'
            }
        };
    },

    computed: {
        containerWidth: function containerWidth() {
            var width = this.width;
            if (/^[\d]+(\.[\d]+)?$/.test(width)) {
                // matches `100`, `'100'`
                return width + 'px';
            }
            return width;
        }
    },
    mounted: function mounted() {
        this.init();
    },
    activated: function activated() {
        if (window.tinymce) {
            this.initTinymce();
        }
    },
    deactivated: function deactivated() {
        this.destroyTinymce();
    },
    destroyed: function destroyed() {
        this.destroyTinymce();
    },

    watch: {
        value: function value(val) {
            var _this2 = this;

            if (!this.hasChange && this.hasInit) {
                this.$nextTick(function () {
                    return window.tinymce.get(_this2.tinymceId).setContent(val || '');
                });
            }
        }
    },
    methods: {
        init: function init() {
            var _this3 = this;

            // dynamic load tinymce from cdn
            (0, _dynamicLoadScript2.default)(tinymceCDN, function (err) {
                if (err) {
                    _this3.$message.error(err.message);
                    return;
                }
                _this3.initTinymce();
            });
        },
        initTinymce: function initTinymce() {
            var _this = this;
            window.tinymce.init({
                selector: '#' + this.tinymceId,
                language: this.languageTypeList['zh'],
                height: this.height,
                body_class: 'panel-body ',
                object_resizing: false,
                toolbar: _toolbar2.default,
                menubar: this.menubar,
                paste_word_valid_elements: '*[*]', // word需要它
                paste_data_images: false, // 粘贴的同时能把内容里的图片自动上传，非常强力的功能
                paste_convert_word_fake_lists: false, // 插入word文档需要该属性
                paste_webkit_styles: 'all',
                paste_merge_formats: true,
                fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
                plugins: _plugins2.default,
                end_container_on_empty_block: true,
                powerpaste_word_import: 'clean',
                code_dialog_height: 450,
                code_dialog_width: 1000,
                advlist_bullet_styles: 'square',
                advlist_number_styles: 'default',
                default_link_target: '_blank',
                link_title: false,
                convert_urls: false,
                nonbreaking_force_tab: true, // inserting nonbreaking space &nbsp; need Nonbreaking Space Plugin
                setup: function setup(editor) {
                    _this.hasInit = true;
                    editor.on('init', function () {
                        _this.$emit('on-ready'); // 抛出 'on-ready' 事件钩子
                        editor.setContent(_this.value);
                    });
                    editor.on('input change undo redo', function () {
                        _this.hasChange = true;
                        _this.$emit('input', editor.getContent({ format: 'raw' }));
                    });
                    editor.on('FullscreenStateChanged', function (e) {
                        _this.fullscreen = e.state;
                    });
                    editor.ui.registry.addButton('imgUpload', {
                        icon: 'image',
                        onAction: function onAction() {
                            _this.imageManager.DialogVisible = true;
                        }
                    });
                    editor.ui.registry.addButton('mediaUpload', {
                        icon: 'media',
                        onAction: function onAction() {
                            _this.videoManager.DialogVisible = true;
                        }
                    });
                }
            });
        },
        onVideoSuccess: function onVideoSuccess(e) {
            var self = this;
            var value = e.listthumbs[0];
            var ht = '<source src="' + value + '" type="video/mp4">';
            window.tinymce.get(self.tinymceId).insertContent('<img class="mce-object mce-object-video" src=""\nwidth="500" height="400" data-mce-p-controls="controls" data-mce-html="' + encodeURI(ht) + '" data-mce-object="video">');
        },
        onImgSuccess: function onImgSuccess(e) {
            var self = this;
            var value = e.listthumbs[0];
            console.log(value);
            var imgTag = '<p><img src="' + encodeURI(value) + '" data-mce-src="' + encodeURI(value) + '"  /></p>';
            window.tinymce.get(self.tinymceId).execCommand('mceReplaceContent', false, imgTag);
        },
        destroyTinymce: function destroyTinymce() {
            var tinymce = window.tinymce.get(this.tinymceId);
            if (this.fullscreen) {
                tinymce.execCommand('mceFullScreen');
            }

            if (tinymce) {
                tinymce.destroy();
            }
        },
        setContent: function setContent(value) {
            window.tinymce.get(this.tinymceId).setContent(value);
        },
        getContent: function getContent() {
            window.tinymce.get(this.tinymceId).getContent();
        },
        imageSuccessCBK: function imageSuccessCBK(arr) {
            var _this = this;
            arr.forEach(function (v) {
                window.tinymce.get(_this.tinymceId).insertContent('<img class="wscnph" src="' + v.url + '" >');
            });
        }
    }
};

/***/ }),

/***/ 387:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
// Any plugins you want to use has to be imported
// Detail plugins list see https://www.tinymce.com/docs/plugins/
// Custom builds see https://www.tinymce.com/download/custom-builds/

var plugins = ['advlist anchor autolink autosave code codesample  directionality emoticons fullscreen hr image imagetools insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textpattern visualblocks visualchars wordcount '];

exports.default = plugins;

/***/ }),

/***/ 388:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
// Here is a list of the toolbar
// Detail list see https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols

var toolbar = ['searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent  blockquote undo redo removeformat subscript superscript code codesample', 'hr bullist numlist link imgUpload mediaUpload charmap preview anchor pagebreak insertdatetime table emoticons forecolor backcolor fullscreen fontsizeselect  fontselect'];

exports.default = toolbar;

/***/ }),

/***/ 389:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
var callbacks = [];

function loadedTinymce() {
  // to fixed https://github.com/PanJiaChen/vue-element-admin/issues/2144
  // check is successfully downloaded script
  return window.tinymce;
}

var dynamicLoadScript = function dynamicLoadScript(src, callback) {
  var existingScript = document.getElementById(src);
  var cb = callback || function () {};

  if (!existingScript) {
    var script = document.createElement('script');
    script.src = src; // src url for the third-party library being loaded.
    script.id = src;
    document.body.appendChild(script);
    callbacks.push(cb);
    var onEnd = 'onload' in script ? stdOnEnd : ieOnEnd;
    onEnd(script);
  }

  if (existingScript && cb) {
    if (loadedTinymce()) {
      cb(null, existingScript);
    } else {
      callbacks.push(cb);
    }
  }

  function stdOnEnd(script) {
    script.onload = function () {
      // this.onload = null here is necessary
      // because even IE9 works not like others
      this.onerror = this.onload = null;
      var _iteratorNormalCompletion = true;
      var _didIteratorError = false;
      var _iteratorError = undefined;

      try {
        for (var _iterator = callbacks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
          var _cb = _step.value;

          _cb(null, script);
        }
      } catch (err) {
        _didIteratorError = true;
        _iteratorError = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion && _iterator.return) {
            _iterator.return();
          }
        } finally {
          if (_didIteratorError) {
            throw _iteratorError;
          }
        }
      }

      callbacks = null;
    };
    script.onerror = function () {
      this.onerror = this.onload = null;
      cb(new Error('Failed to load ' + src), script);
    };
  }

  function ieOnEnd(script) {
    script.onreadystatechange = function () {
      if (this.readyState !== 'complete' && this.readyState !== 'loaded') return;
      this.onreadystatechange = null;
      var _iteratorNormalCompletion2 = true;
      var _didIteratorError2 = false;
      var _iteratorError2 = undefined;

      try {
        for (var _iterator2 = callbacks[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
          var _cb2 = _step2.value;

          _cb2(null, script); // there is no way to catch loading errors in IE8
        }
      } catch (err) {
        _didIteratorError2 = true;
        _iteratorError2 = err;
      } finally {
        try {
          if (!_iteratorNormalCompletion2 && _iterator2.return) {
            _iterator2.return();
          }
        } finally {
          if (_didIteratorError2) {
            throw _iteratorError2;
          }
        }
      }

      callbacks = null;
    };
  }
};

exports.default = dynamicLoadScript;

/***/ }),

/***/ 390:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    {
      staticClass: "tinymce-container",
      class: { fullscreen: _vm.fullscreen },
      style: { width: _vm.containerWidth }
    },
    [
      _c("textarea", {
        ref: "editor",
        staticClass: "tinymce-textarea",
        attrs: { id: _vm.tinymceId }
      }),
      _vm._v(" "),
      _c("video-picker", {
        attrs: { stateManager: _vm.videoManager, multiple: false },
        on: { submitPicture: _vm.onVideoSuccess }
      }),
      _vm._v(" "),
      _c("image-picker", {
        attrs: { stateManager: _vm.imageManager, multiple: false },
        on: { submitPicture: _vm.onImgSuccess }
      })
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-loader/node_modules/vue-hot-reload-api")      .rerender("data-v-195137ab", module.exports)
  }
}

/***/ }),

/***/ 391:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { attrs: { id: "create-edit-container" } },
    [
      _c(
        "el-card",
        [
          _c(
            "div",
            { staticClass: "row", attrs: { slot: "header" }, slot: "header" },
            [
              _c(
                "div",
                {
                  staticClass:
                    "d-flex align-items-center justify-content-around",
                  staticStyle: { width: "100%" }
                },
                [
                  _c("div", { staticClass: "col-auto mr-auto" }, [
                    _c("h2", { staticClass: "m-0" }, [
                      _vm._v(_vm._s(_vm.modalTitle))
                    ])
                  ]),
                  _vm._v(" "),
                  _c(
                    "el-button",
                    {
                      staticStyle: { "margin-right": "15px" },
                      attrs: {
                        type: "primary",
                        loading: _vm.stateManager.buttonLoading
                      },
                      on: { click: _vm.saveModel }
                    },
                    [
                      _vm._v(
                        _vm._s(
                          _vm.stateManager.buttonLoading ? "提交中" : "保存"
                        )
                      )
                    ]
                  )
                ],
                1
              )
            ]
          ),
          _vm._v(" "),
          _c(
            "el-form",
            {
              ref: "model",
              attrs: { model: _vm.model, rules: _vm.ruleValidate }
            },
            [
              _c(
                "el-row",
                { attrs: { type: "flex", gutter: 20 } },
                [
                  _c(
                    "el-col",
                    { attrs: { span: 12 } },
                    [
                      _c(
                        "el-form-item",
                        { attrs: { label: "文章标题", prop: "title" } },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请填写文章标题" },
                            model: {
                              value: _vm.model.title,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "title", $$v)
                              },
                              expression: "model.title"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 12 } },
                    [
                      _c(
                        "el-form-item",
                        { attrs: { label: "文章副标题", prop: "sub_title" } },
                        [
                          _c("el-input", {
                            attrs: { placeholder: "请填写文章副标题" },
                            model: {
                              value: _vm.model.sub_title,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "sub_title", $$v)
                              },
                              expression: "model.sub_title"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  )
                ],
                1
              ),
              _vm._v(" "),
              _c(
                "el-row",
                { attrs: { type: "flex", gutter: 20 } },
                [
                  _c(
                    "el-col",
                    { attrs: { span: 12 } },
                    [
                      _c(
                        "el-form-item",
                        { attrs: { label: "素材标签", prop: "tags" } },
                        [
                          _c(
                            "el-select",
                            {
                              staticStyle: { width: "100%" },
                              attrs: {
                                filterable: "",
                                multiple: "",
                                "allow-create": "",
                                placeholder: "请选择素材标签"
                              },
                              model: {
                                value: _vm.model.tags,
                                callback: function($$v) {
                                  _vm.$set(_vm.model, "tags", $$v)
                                },
                                expression: "model.tags"
                              }
                            },
                            _vm._l(_vm.tags, function(item, key) {
                              return _c("el-option", {
                                key: key,
                                attrs: { label: item.label, value: item.label }
                              })
                            }),
                            1
                          )
                        ],
                        1
                      )
                    ],
                    1
                  ),
                  _vm._v(" "),
                  _c(
                    "el-col",
                    { attrs: { span: 12 } },
                    [
                      _c(
                        "el-form-item",
                        { attrs: { label: "文章栏目", prop: "category" } },
                        [
                          _c("el-cascader", {
                            staticStyle: { width: "100%" },
                            attrs: {
                              props: {
                                multiple: true,
                                checkStrictly: true,
                                label: "name",
                                children: "children",
                                value: "id"
                              },
                              options: _vm.categoryList,
                              "collapse-tags": "",
                              clearable: "",
                              placeholder: "请选择文章栏目"
                            },
                            model: {
                              value: _vm.model.category,
                              callback: function($$v) {
                                _vm.$set(_vm.model, "category", $$v)
                              },
                              expression: "model.category"
                            }
                          })
                        ],
                        1
                      )
                    ],
                    1
                  )
                ],
                1
              ),
              _vm._v(" "),
              _c(
                "el-row",
                { attrs: { type: "flex", gutter: 20 } },
                [
                  _c(
                    "el-col",
                    { attrs: { span: 24 } },
                    [
                      _c(
                        "el-form-item",
                        {
                          staticClass: "image-picker",
                          attrs: { label: "文章封面", prop: "cover_image" }
                        },
                        [
                          _c("br"),
                          _vm._v(" "),
                          _c(
                            "div",
                            {
                              staticClass: "el-upload",
                              on: { click: _vm.imgPick }
                            },
                            [
                              _vm.model.thumbnail_path
                                ? _c("img", {
                                    staticClass: "avatar",
                                    attrs: { src: _vm.model.thumbnail_path }
                                  })
                                : _c("i", {
                                    staticClass:
                                      "el-icon-plus avatar-uploader-icon"
                                  })
                            ]
                          )
                        ]
                      )
                    ],
                    1
                  )
                ],
                1
              ),
              _vm._v(" "),
              _c(
                "el-row",
                { attrs: { type: "flex", gutter: 20 } },
                [
                  _c(
                    "el-col",
                    { attrs: { span: 24 } },
                    [
                      _c("el-form-item", {
                        staticClass: "editor",
                        attrs: { label: "文章内容", prop: "content" }
                      }),
                      _vm._v(" "),
                      _c("tiny-editor", {
                        ref: "edit",
                        attrs: { height: "500" },
                        model: {
                          value: _vm.model.content,
                          callback: function($$v) {
                            _vm.$set(_vm.model, "content", $$v)
                          },
                          expression: "model.content"
                        }
                      })
                    ],
                    1
                  )
                ],
                1
              )
            ],
            1
          ),
          _vm._v(" "),
          _c("image-picker", {
            attrs: { stateManager: _vm.manager, multiple: false },
            on: { submitPicture: _vm.getPicture }
          })
        ],
        1
      )
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-loader/node_modules/vue-hot-reload-api")      .rerender("data-v-59d273ee", module.exports)
  }
}

/***/ })

});